package Bean;

import java.util.List;

/**
 * ClossName:Page
 * Pakage:Bean
 * Description
 *
 * @Author L
 * @Create 2023/11/7 22:38
 * @Version 2023.1.3
 */
public class Page {
    //当前页码
    private int number;
    //每页行数
    private int rows;
    //总条数
    private int totalRows;
    //总页码
    private int totalPage;
    //查询出的商品集合
    private List<Product> list;

    public Page() {
    }

    public Page(int number, int rows, int totalRows, int totalPage, List<Product> list) {
        this.number = number;
        this.rows = rows;
        this.totalRows = totalRows;
        this.totalPage = totalPage;
        this.list = list;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public int getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(int totalRows) {
        this.totalRows = totalRows;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public List<Product> getList() {
        return list;
    }

    public void setList(List<Product> list) {
        this.list = list;
    }
}
